import http from '@/config/requestConfig'
import config from "@/config/index.config.js";

export const getIndexlist = (data) => http.post(`${config.baseUrl}/v1/index`, data);


export const getBanner = (data) => http.post(`${config.baseUrl}/v1/banner`, data);

export const getArticleDetail = (data) => http.post(`${config.baseUrl}/v1/detail`, data);


export const getHotList = (data) => http.post(`${config.baseUrl}/v1/hotlist`, data);

export const checkDetail = (data) => http.post(`${config.baseUrl}/v1/checkdetail`, data);

// ppt首页列表
export const getCardIndexlist = (data) => http.post(`${config.baseUrl}/card/index`, data);

//  ppt获取详情
export const getCardArticle = (data) => http.post(`${config.baseUrl}/card/detail`, data);

// 获取顶部banner
export const wxmessage = (data) => http.post(`${config.baseUrl}/card/wxmessage`, data);

export const  setalbum = (data) => http.post(`${config.baseUrl}/atlas/setalbum`, data);

export const  getalbum = (data) => http.post(`${config.baseUrl}/atlas/getalbum`, data);

export const  getopenid = (data) => http.post(`${config.baseUrl}/v1/getopenid`, data);


// 测试模式  ***   务必记得上传前关闭调试模式   ***
export const testMode = false; //测试模式 true false
export const adUnitId = 'adunit-a893ed980174425c';
export const adUnitIdDetail = 'adunit-ac567c70561ac3fb';
export const appId = 'wxc716234eca6701b2';